/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/16
\**********************/
#ifndef __LUA_OPTION_H__
#define __LUA_OPTION_H__
#pragma once

#include "LuaButton.h"

namespace DuiLib {

class LuaOption : public LuaButton
{
    SDLUA_CLASS_DECLARE(LuaOption);

    bool Activate();
    void SetEnabled(bool bEnable);

    int GetSelectedImage(LuaState *L);
    int SetSelectedImage(LuaState *L);
    int GetSelectedHotImage(LuaState *L);
    int SetSelectedHotImage(LuaState *L);
    int GetSelectedPushedImage(LuaState *L);
    int SetSelectedPushedImage(LuaState *L);
    
    int GetSelectedForedImage(LuaState *L);
    int SetSelectedForedImage(LuaState *L);

    void SetSelectedTextColor(DWORD dwTextColor);
    DWORD GetSelectedTextColor();
    void SetSelectedBkColor(DWORD dwBkColor);
    DWORD GetSelectBkColor();

    int GetGroup(LuaState *L);
    int SetGroup(LuaState *L);
    bool IsSelected();
    void Selected(bool bSelected);
};

}

#endif //__LUA_OPTION_H__